﻿<%@ Page Title="每日人员动态" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DailyLocation.aspx.cs" Inherits="WhereIam.Moduels.DailyLocation" %>
<%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxGridView" Assembly="DevExpress.Web.v14.1, Version=14.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>每日人员动态</h2>
    <hr/>
    <div class="col-lg-12">
        <dx:ASPxGridView ID="ASPxGridView1" KeyFieldName="IdDailyLocation" CssClass="table-hover col-lg-12" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" Theme="Metropolis">
            <Columns>
                <dx:GridViewDataTextColumn FieldName="IdDailyLocation" Visible="False" VisibleIndex="0">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataDateColumn FieldName="Today" VisibleIndex="1" ReadOnly="True" >
                </dx:GridViewDataDateColumn>
                <dx:GridViewDataTextColumn FieldName="EmployeeName" VisibleIndex="2" ReadOnly="True">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="DeptName" VisibleIndex="3" ReadOnly="True">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataComboBoxColumn FieldName="LocationName" VisibleIndex="4">
                    <PropertiesComboBox DataSourceID="ObjectDataSource2" TextField="LocationName" ValueField="Fh"></PropertiesComboBox>
                </dx:GridViewDataComboBoxColumn>
            </Columns>
            <SettingsBehavior ConfirmDelete="True"/>
            <SettingsPager PageSize="20">
            </SettingsPager>
            <SettingsEditing Mode="Batch">
            </SettingsEditing>
        </dx:ASPxGridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="WhereIam.Entities.DailyLocation" SelectMethod="GetAll" TypeName="WhereIam.Entities.DailyLocationBll" UpdateMethod="Update"></asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetAll" TypeName="WhereIam.Entities.LocationsBll"></asp:ObjectDataSource>
    </div>
</asp:Content>